import request from '@/utils/request';
import qs from 'qs';
// 轮班设置
// 查询
export function getShift(query) {
  return request({
    url: '/shiftManagement/queryShift',
    method: 'POST',
    data: query
  });
}
// 新增
export function addShift(query) {
  return request({
    url: '/shiftManagement/addShift',
    method: 'POST',
    data: query
  });
}
// 修改
export function updateShift(query) {
  return request({
    url: '/shiftManagement/updateShift',
    method: 'POST',
    data: query
  });
}
// 删除
export function delShift(query) {
  return request({
    url: '/shiftManagement/deleteShift',
    method: 'POST',
    data: query
  });
}
// 查询单独轮班明细
export function getShiftDetail(query) {
  return request({
    url: '/shiftManagement/queryShiftDetail',
    method: 'GET',
    params: query
  });
}
// 班制设置
// 查询
export function getClass(query) {
  return request({
    url: '/shiftManagement/queryShiftSystem',
    method: 'POST',
    data: query
  });
}
// 添加
export function addClass(query) {
  return request({
    url: '/shiftManagement/addShiftSystem',
    method: 'POST',
    data: query
  });
}
// 更新
export function updateClass(query) {
  return request({
    url: '/shiftManagement/updateShiftSystem',
    method: 'POST',
    data: query
  });
}
// 删除
export function delClass(query) {
  return request({
    url: '/shiftManagement/deleteShiftSystem',
    method: 'POST',
    data: query
  });
}
